Changed algorithm for todays activity