Great, thanks! I thought there must be a better way to generate arrays (I miss Python sometimes).