Added support for passing a single object of methods to listen for, as well as passing a single function to listen for all methods