Made functions better pass by value.