Add print function.