Fixes #811: Improve interface to add medal ranks and avoid losing data