Added code to find preliminaries.