Commented completed function