Node.js callback pattern.