Added input handling methods.