Added a functions whose parameter is a reference