Added comments.
Updated prototype.