Fixed route functions not having returns