Added Managed Device Code