Added texture code