Added exception for invalid fees.