* Moving the code around to populate the fields