Added additional if statement to getvolumedata process