Added debug log for chmodding