Streamline some code.