Global print method and bug fix