Added simple user interaction for testing.