Fix bugs - bad function name called and updated the creation of the startup script.