Finished basic extraction and condition rules.