Split up scene code