Updated psmc script