Refactored MessagesInterface, move it to the stdlib.