Updated the problem with Jesse's answer.