Comments added on top of the 2 functions