Added support for detecting iPhone, iPad and Android devices based on UserAgents