Small change so that udat field is properly set