Added some texture code