Add print attribute and fix warning it catched.