i\'m not to big on stat scripts but this is nice and i to would use hash tables as xDaeMon pointed out