Moved around code in ssd-cat.c to make it more readable.