Added flag for server or client message registration.