Add melody support and hal stubs