Added a method in the am helper.