Add simplify code to repo