Will move all logic into view.