Made thread specific changes
Merge remote-tracking branch 'origin/devel' into devel