Add clearBounds function