New order functionality and error handling