Initial array and IO library functions