Moved implementation of a function to cc