Is working pretty good =) Will make web interface use this script soon.