Added some comments to the code that handles SDK interaction.