Simplify functions.