Add init function for setting global defaults