Another attempted fix to done script