Corrected completion for function