Completed multithreaded sdf generator