Fixed scripting bugs.
Changed package names to avoid collisions.