Changed precision of share values from int to double.