Used partial application to improve readability.
Added a query to the TypeB listener.