Implemented multiple thread.