Added agent and device code with MIT license