Reorganized bootstrap script.