Updated set all functionality on route so that it runs all code when required