Start sequence code refactor