Can now get user input and pass to a handler function.