Script reorganized (now is executable!)