Created mapper function. May or may not be working....