Update last activities and update rules