Implement magnet stats
Merge branch 'server' into develop