Converted Amount type to a record instead of a tuple.