Improve get_source. Add Thread object.