Add optional configuration writing which is activated by default