Move initialize functions to object declarations