Code in lines from 67 to 76 definitely needs to be refactored, but we'll leave that for another ticket.