Fix delay variable value (1s) and revert searchTypes variable name to types