Adding code for Box filter