Updated texture thing with tests.