Adds interface to flush collected records