Added event listening as global. Fixes #14