Moved test against size of 0 to before we align.
Added print statements as debug begins.