Fixed #408 and #409. Refactored internal filter logic. Can customize URL with filters