Add timing functionality.