Working version.  But gives off glibc detected error