Modified the code to use the new version of Bumblebee.
Modifying for updated version of Bumblebee