Making the Ruby trojans compliant with the new API.