Added support for callbacks and sound. (Callbacks not yet supported in JS)