Removed what I think was a redundant if clause.