Add mapping algorithm