Removed unused stuff and renamed clear scripts to flush_*