A smart routing mesh written in Erlang