Transitions code from project, everything working so far.