def consume(self, amount=1):
        """Consume one or more units from the bucket."""
        # First, cleanup old stock
        current = self.leak()

        if current + amount > self.capacity:
            return False

        self._incr(amount)
        return True