BSON gem is required for API access to function