Use a case statement to determine anchor