Adapted not to require git module