More robust checking of pos