Moved input into a module of it's own.