Ignore core files.
Add print index nums functions.