Added and improved Reeti's code.

In Urbiscript.