Update initialize method.