Allow callbacks as 'function' and 'filter'