Added methods on Swift