Added newthread controller action.