Change amount to use params