Made all models serializable for cachine purphose