Adding a (lightly modified) karma script.