Use stat funtions that don't throw