Moved controller type into seperate file.