Updated to use milliseconds for connecting to chat