Added filtering to costs.