The comments have been updated for the function