Removed a bit of redundant code, added pull check for mpAIs.