Added Input Class. Updated API.