Remove debugging code with extraneous shell call