New version for inputManager