Implement the flush command in a more compatible way