Added index creation, serialisation & deserialisation