Made route patterns optional, closes #1046