Comments added to describe the functions.