GetAttribute method added for Messages and some corrections