Added initialize method.