Export `when`