Add recording mechanism to alternative function.