Added support for bulk loading in 3 dimensions.