Improve failcount handling even more. Should be optimal now.