Added addComponents method