Rrrrrewrite! :)
Flexible configuration, less code, more options!