Added a few utility kwik functions.
Updated test script.