Implemented finish order functionality.