Call correct function.g