Add support for simple first/last filter.