First version of scrip that is ready for testing.