Backend part for messages