Use spawn/3 here (avoids building an anonymous function).