Simplify Code