removed hardcoded options.
Added code for calculating totals.