Updated the tests, wrote a new method for processing previous input and generally made a mess of things.