Call the correct function.