Trying to get better error information.
Fixed my map function.