Add print code for debug.