Moved check tweet criteria to analysis function