Added addSection function