Fix for the case that an option is a function
Merge pull request #7 from ezecafre89/sending-functions

Fix for the case that an option is a function