Made shell code less sketchy. It works now.