Integrating Marker-Passing and Problem Solving