Removed MAX_ATTEMPTS const