Added reference
Updated fixpermissions to not take so long