Modified to test cpml