Simplified print function.