Replace event flag to direct call
Disable trash functions