Simplify function.