Adds rust implementation