Modified to add optimized code for set and get for zebra