cleaned up GetFolder and GetDevice adding object holding folder and device information, and made it work!