Strangely enough, I decided to use a lambda to save space.