Preliminary implemenation of pyramid division