Planning with commitment