Completed the API for inputfilter