Added logging when reading messages