Rewritten input filter