Added package name check to make sure plugins don't cause problems.