Added possible STDERR filters.
Improved the regexp for STDERR filters.
Tidied the code.