Improved solution to the Triangle problem