C implementation
Changing reference