Added parameter 'grep' for Input/File.pm to skip events that does not match.