Rewrite bootstrap script for clarity