Bug Fix: Doesn't check for valid triangle.