Fixed writeToRing method and speaker method