Reduced run time and fixed edge case.