Fixed a bug which causes the message call to return immediately
Changed the timing for message timeout and inactive timeout
Modified the timings again