Prepare for command line tool and script