Mods to last mod command handler to allow for parameterization and better sorting/filtering