Moved setDefaults into a static function again