FirstSet calculation fixed; seems to work