Corrected print function.