Started to change to the threaded model. Buggy one.