Changed queries
Refactored code
Added one more variable to the query
Changed application behavior