Changed function prototype and comment