Added the ability to calculate lung volume using different methods.