Anyway, see my cunstom BGM branch, you have everything corrected.