Ensuring the demo script runs only from master