Move the settings initilization into the appropriate method