Help required to change function prototype