Seperate event registration from core mod file.