Implement "input rules".