Add put function.