Add reverse mapping function