Uncommented out code where query was actually called.