Split initialization into 2 functions.