Fixed printing, with safe vars functions