Complete new IA order placement algorithm; fix #21