Added multiple ways to instantiate thread objects