Implemented short_paths for the switch buffer. Not yet using this function