I would remove this sleep and just print the warning in red.