Add user input and filter functions