Added create thread functionality.