Working on using Mem for shift register