Get rid of dependency of third party software. Not tested yet