Now possible to specify under which key the messages are stored.