Added missing config.
Fixed regex bug.
Removed unused variable.