Remove unnecessary use of xargs in cs function