Now uses array instead of char** in str_split, and event handlers.