This will need to be tested on numpy 1.7.