Cleaned up create-ndarray