Changed title-setting method to allow for modularity.