Added bootstrap mechanism.
Adapted existing implementation to use bootstrap.