Implement details with if_ instead of pattern matching.