Put initialization in a separate callable function.