Began work on the initialize function