Change syntax to use Array instead of Object.
Comment toPairs function.