Implemented script events.