Initial version of populateField()