Ooops.
Add missing ref to keyRange
Setup consts directly

BB10 already uses strings instead of ints
Remove unused function