Simplifying a few functions.