Added fast C function