Add swift compatability