Modified dump implementation.