Modularized program init