Added Input function