Event bugs fixed. Priorities optimized.