Added createPayPeriod mapper function