Added private and public message functions