Added allowOverride and failOnError options