Adding check for mainsite.