Laid down some basic framework for input functionality.