Updated to make use of passed planC