Fix a stupid loop max.
Add native for setting rating and general natives cleanup.