Rename variable 'ready' to 'queue'.