Added template support for sending values.