Adding top level function to MVP that returns the ranked spots and does exception handling.