Map() function for curve

Thanks. I'll test this out and see how it works.