Added some checks for audio pin availability
Modified some locale stuff