Removed dangerous removeAllListeners and improved readability.
0.14.17