Made functions pass by copy.