Added custom config write