Improved input methods.