Why reinvent the wheel? https://github.com/sharevb/it-tools