Updated amount variable to be a request parameter handled by Spring.