Removed applyBoundaries()