Initial Commit : Logic for the filter