I'll second Amy's person on having plenty of chew toys. I went to Drs. Foster and Smith and ordered DIY parrot toy parts. I've made a few toys, but sometimes, I just throw a pile of loose parts onto a playing surface and let Kizzy go nuts. It keeps her occupied. Parrots need destructible wooden toys to destroy to keep their beaks trim and satisfy the urge to chew.
Also, it might be a good idea to spend constructive time with Rory. Don't just sit with him. Train him. Find out what his favorite treat is and use it. I will suggest raw hulled sunflower seeds because Amazons absolutely love them. They can be very fattening, so I only use them as treats. Withhold the treat from his usual food, but don't pay any attention to people who claim you have to control a parrot's overall food intake. I've found the opposite to be true. A full Amazon is a cooperative Amazon. Amazons love food. Gabby would work just fine on a full crop. Kizzy is so young and distractable she sometimes decides not to participate in training. Usually if I wait awhile and try again, she'll participate. (If your bird is too fat, work with an avian vet if you need to put him on a diet. Denying birds food as a way to make them keen to train is counterproductive, especially for Amazons.)
What to teach? Both fun stuff and hard stuff. The "up" command and laddering are great for establishing nurturing dominance. Target training can be useful. You can teach him tricks, potty training, harness training, desensitization.
He's a young bird, so it's a good idea to wear him out a bit. He has a ton of energy and if you aren't directing it toward positive things, he will think of other ways to use it. I can wear Kizzy out by having her fly back and forth between me and her perch (a trained behavior) and working on training. The big focus is harness training because it's so difficult, but necessary.
The more time you spend with Rory when he cannot bite you or is more interested in a treat than biting you, the less he will bite. That in conjunction with behavioral training should help a great deal.
My Kizzy-bird is almost six months old now and she still pinches me on occasion. She is pushing her limits, seeing where she fits in. She pinches the backs of my hands because it's working. I'm doing something she likes, so she's learned pinching the backs of my hands is a way to get what she wants. It's up to me to figure out why she is doing this, how I'm reacting, so I can eliminate the problem. In the meantime, it helps to work on training to stimulate her and give her something to concentrate on besides biting the backs of my hands.