Add methods for thread