Change to Lattes algorithm (P only)