Implemented new stageWriter function
Attached translation to new stagewriter