Updated PBS script