Added support for reading messages