Implemented InputScript