Computing Contingent Plans Using Online Replanning