Got blend number assignment working.
Everything works, but needs more polish. Time for a real deployment test.