Finished input maganament. Tidy :)