Added constructor for renderphase