Start to use pickle
New function for ranked variants