Simplify the code.