Consistently itterate over last dimensions