Added synchronized queue flushing, lowered flush interval