Added get path method to device