Added comments and removed the outer reference to objects.