Implemented G (get) and R (release) commands.