Make models Serialisable