Automatically finds the best phi now.