OnBegin function

Learn technical details about the OnBegin function.