Implemented new way of registering actors