Got the initialize function working