Made minor changes to isFull().