Added debugging trace and fixed indent