Made the interfaces serializable