Added some basic stuff for graphics and input.