Added assert statements to avoid non-alignment during parsing