Rework the anti spam function