Implemented filtering of the objects array.