Make the filter functions global inline, and use it for echo