Changed fname to topc