Complete flush function

Fuck yeah!