Made helper method pure to promote laziness. Runs like a boss now!