Add print type function.