Made work with windows (mostly) :)