Whoops. changed read_array to static