Moved minLs to material property. Added debug output