Added Input handler