Added major,minor check for ufunc