This will give an error if the callback is not passed (in existing games). We should check if the callback is defined and if it's a function.