Added intrinsic and stm implementations