Changed to if statement to check for summary