Create boundary box functionality