Added comments to clarify methods.