Fixed up script to working status