Added /g. Fixed minor stuff.