Anyone knows a better way to use object methods (with parameters) as callbacks?