Continue to refine shell code