Mayberry was later used as the earth setting in Star Trek