Added the Input class API.