Working out buggy Input Handler