Fixed flush method to take optional args