Rewrote /showhidden using a smart pointer