Add frame flushing mechanism