Added controller activity code