Got the withdraw function to work