Code completion function definitions work