Ported bootstrap sequence from old script