Started work on the texture refactoring.