Added support for script and sleep actions, comments and return calls.