Added boundaries for scaling