Switching to mutable arrays