Add FUNCTIONEMPTY and handle for applying filters. Fixes gh-296