Added more error checking to addSize