Started implementing threading.