Fixed something, but I still try to find more bugs. The array.range() function is broken...