Adding the dump function