Added in serialization and deserialization of actions