Added digits in pig function