Add some constraints for send promise value.

Addresses issue #4