Variable name incorrect due to copy / paste.
Variable name incorrect due to copy / paste.
Added assertions for when returning serialised data in callback.