Call the right function.