Added initialize function