But the if condition does fails and it gets to the end of the function if the amount is greather than bandwidth, unless I'm going crazy here!