Made modelblock serializable.