Updated Swift Syntax & Fixed Crash Bug