Added judge()