Added even mor eerror checking to addSize