Convert to expect syntax