Changed the amount type to double ref #1