Started to implement a input handler