The prefix needs to be checked when not a wildcard
Don't worry about an unused main method