Made generated sources implement serializable