Added a failsafe.