Add code to make it easy for others to register for xAPI events