Move array read/write commands into a separate module.