Starting to add code for dynamic volume control (Not Working Yet).
Added error handling for XMI.
Added XMI handling (NOT YET TESTED) but it does compile.