Started adding events system for the lua scripting.