Fix buffer computation on filter.
Continue mole support.
Filter support new mole API.