Moved router trigger into its own function so it can also be manually called