Last version of lib with improved data formatting.