Basic implementation of message compression module