Adding a bootstrap function