Config max api retry time

Fix for issue #20