Remove function CompleteScript and cpoptions