Add initialize phase
Fix initializing procedure