Refactored title and added helper method