Callback function is now passed a struct of pointers that contains references to critical data for that frame

Example updated