Separated Manager and Input code