Add definition for basicWriter