Created activity compiler method