Added backend check to hash primitives