Add triangle case support