Added new comments on both the functions