Updated call from arange to createRange