Added support for depth and a sane default for filter.