Bugfix: Options were set too late to influence main method generation