Changed modulo function and fixed field separator issue