Some architecture changes. Use new thread for solver routine.