Order activity by time and more debug output.