Changed SerializableAttribute to DataContract so it can compile on all platforms.