Rewrite code for bootstrap usage