Changed function to read volume.