Basic setup, most of the code was copied from my "Game" project.