Define dirty queue structure, writing offline methods to match.