Added the usage of error duration to the activities, plus some more.