Removed obsolete function and added comments.