Remove flush as it was causing other errors.