Added a sleep to allow aborting.