Device detection functionality has been added.