Adding sections and preventing errors