Fix Threads, increase to 512 possible threads