Added parameters to populateElem() and populateModel()