Try to use wildcards in if, reducing a bit of downloading.