Work in progress. Add more for tutorial and showpopupmessage