Implemented get events with term function