Cleanup of config