Switch to swift