This function should support passing in a title with or without an extension. Assuming all the part getting logic is done in initialization, you should just be able to check for an extension on the title here and add one if it isn't present.