Just one note: Now it seems you want to `finally write a plug-in`. What about Plug-in for writing configuration?