Add printing functionality.