Add swift mode support