Better organized input code.