Changed prefix generator to event