change things so messages to analyser are immediately sent when new activities are detected