Added getmessages and getnewmessages
1.1.2 hotfix; Fixed unnecessary backup variables.