Peak Lean Aiming

Hello all! Currently using ALS v4 as a base for a project I am working on. I have implemented a peak lean function using a transform modify bone in the anim graph after the aim offset. I have chosen to keep a toggle between 1st and 3rd person. I have changed the first person mode and done my own socket alignment to the optic from a socket on the player to a socket on the weapon for first person which is changed when in TP. It’s still a Wip but it functions well enough for now. The peak lean is my main focus at the moment. It works, however the issue I am having is that it conflicts with the aim offset transform modify for up and down, misaligning the aiming up and down. I think this is becuase when leaning, it is only changing the pitch rotation of the spine bone by 45 degrees. Since the up down is the yaw or x which when at a 45 degrees left or right is now not up and down to the screen. I’m not sure how to toggle this within the anim Bp to rotated the aim offset or perhaps it requires a clamp. If anyone has any pointers to brain storm upon that would be awesome!