Cleaning up some code. Note: The passed parameter "override" in setVolumeParameters needs to be adjusted