Refactor to set title more effective.