Added check if writer already has a formatter