Added a dump data function