Implemented scene ordering.