Created my own threading library