Changed getAmount() to get_amount().