Add name and title in constructor.