Removed a bit of debugging and loop control for testing.