Re-structured startup code.