Function print() can now take a stream as first parameter.