Fixes #8. Implemented open-messages and close-messages commands.