Added deviceType capabilities to the code