Call correct function.