Added function to support dump newest record only