Updated amount variable to reflect throughout the code