public function detect($method = 'isMobile', $args = null) {
		if (!class_exists('Mobile_Detect')) {
			// load the vendor class if it hasn't allready been autoloaded.
			$loaded = App::import('Vendor', 'MobileDetect.MobileDetect', array(
				'file' => 'MobileDetect' . DS . 'Mobile_Detect.php')
			);
			// abort if vendor class wasn't autoloaded and can't be found.
			if (!$loaded) {
				throw new CakeException('Mobile_Detect is missing or could not be loaded.');
			}
		}
		// instantiate once per method call
		if (!($this->MobileDetect instanceof Mobile_Detect)) {
			$this->MobileDetect = new Mobile_Detect();
		}

		return $this->MobileDetect->{$method}($args);
	}