Moar latex refactoring.