Unify code