Moved loading rank permissions to its own method to fix #50