Edits the function initialize