Adds mapping and some patterns