Function for getting the right money back now working