WOrking on the sge scripts