Finally hopefully working script and mbs files