Updated to AE RV2

this was a real quick port to ae rv2 I wonted for a project thought I would save you the trouble and just send a PR