checking if action has completed before returning false and adding a method to change the max tries