Added a function to replace function calls for cyth.