Added a promiscuous 'middleware'