Made changes to "defer" param in populateElem()