Converted SRAM commands to functions