Added functions to startup on window and linux