Code changes for Carousel