Corrected get functionality
Logic for correct handling of store transactions