Made function pure arg parsing