Code commented and warning message added.