Given that expand() appears to do its own BAD_RANGE check, it looks unnecessary to check it again in rmqueue. James