Setting things based on the length of the query