A bit of code to prevent unnecessary queries
Reduction of log messages
Implemented deck URLs