Finish multi-get and reorganize the code a bit