Added loop support to Melody IC.