Added arrays, invert, and better placement