Add support for BSON parsing