Add a check at the spawn command