Working implementation of message adapter