Added Chanh's functions