Simplifying some code.