Simplifying and speeding up bootstrap file