Further use of underscore to replace complicated imperative code.