Use expect syntax instead of proc