Add lockTexture and misc. other stuff