Might be easier to add the ignore flag to the manifest file so there won't be a need for the if statements.