Added a check for missing sites