Added max()
Added createTimedHandler() and createInvokeBarrier() together with som basic tests