Fixed bug and refactored out experimental code with flip and wheel.