Replaced FreeAndNil to .free