Use closure for DRY.