Added general callback feature

Not yet for IE…