Erlang middleware for my Byro project