Checking for activities length.