Implemented first running version of a script.

Cleaned up.