Utility for amdp