Added a miserable hack of a bson wrapper.