Implemented two-phase injection