Added checking to handle blank results