Updated flush command to new style