Added printf functionality.