Add initialize method.