Add first working version of main-script.

padlock-support is yet missing.