Created main script.

The actual script.