Added dump function.