Add populate function