Renamed method to match the rest of code's style.
Added Globals class and limited max chat text length.