A token bucket implimentation