Cloud controller in Erlang