Realized one of the arguments in genMap wasnt needed and could be obtained using the other.