Adds choosing device function from both platforms