Added loops for compiling multiple components