Added methods to fetch the current device