Fixing a null pointer exception for some cases. Adding a cap on how many glasses can be returned in search.