Added __main__ check
Added check for sites.txt