Ported Tools from Python