Implemented basic ordering functionality