Change funciton prototype