Use sleep(500) to avoid fork bomb bug