Refactored input devices.