Added option to define entry point of script