Abstracted events and activities into libs