Pass arguments to new thread