Changed types of functions, added WIP rank finder