Added logicalsetdata and logicalgetdata implementation.