Fix log data array
Remove unused code
Improve max/min reputation check