Store thread as attribute