Decorator for registering modules
Added a command to check whether a message has been received