Use logic from stdenv