Added lots of bootstrapping stuff.