Fixed rewrites code, output messages when there are no rewrites (is this an installation from Heaven?)