Keep track of how much memory is used so we can stop at 4 gig