Moved receiving message into the timerTask().