Add printing functionality