Made a special exception to getrank, added resource folder.