Cleaned up equals to be more compact and use vec's equals property.