Reworked getAmountLoaded, and private function onAmountLoaded, still have to test online to see if it works properly.