Do proper checks against length