Moving code over to new view controller.