Add Config Writer and update helper function