Add print function compatibility