Got both get and put working, except for the first line nonsence.