mod. Move input filter functionality into method in engine module