Activities logic added