Split startup code into separate source file