Added a simplify method