Refactored story controller.