Committed fixed to searchandpauseafter functions so that they actually
pause