Working script for course project.