Added ability to complete and close orders