An Erlang gen_server-like behaviour that includes Lamport clocks