Some more work on scripts