Split init from main