Copied scripts from nettouk project