Added some comments to describe the use case we have intended here; also made some adjustments that seems to look cleaner than earlier iterations.