This split the mangling code up to allow for the possibility of multiple