Make input functional