Added functions for getting and setting messageID.