Added almost functional forloop for getting dataElements from programStages
merge error