Added new Thread implementation