Implemented routing and filtering