This line should probably be moved to the controller.