Allowing printVar to return values