Updating dev script to use global if it exists