Updated debug and run script