How Market Orders Can Work