Refactored elif to detect literal version