Line 121 had a missing bracket to close off the function.