Reworked input handling and order issuing.