Replaced spawn with exec