Added readMessage function.