Add constraints for a listeners function.
Satisfy listeners constraints.
Merge pull request #4 from plediii/enhance-listeners

Enhance listeners